package com.design_pattern.builder;

/**
 * builder  模式
 */
public class Main {
    public static void main(String[] args) {
        Person.PersonBuilder builder = Person.builder();
        Person person = builder.basicInfo("小埋", 23)
                .phone("17631636889")
                .location(new Location("北京"))
                .build();

    }
}
